<template>
  <div>
    <template>
      <el-table
        :data="locaday"
        stripe
        border
        style="width: 100%">
        <el-table-column prop="username" label="登入账户" width="200"></el-table-column>
        <el-table-column prop="lastLogin.ip" label="上次登入ip" width="200"></el-table-column>
        <el-table-column prop="lastLogin.loginTime" label="上次登入时间" ></el-table-column>
        <el-table-column prop="nowLogin.ip" label="本次登入ip" width="200"></el-table-column>
        <el-table-column prop="nowLogin.loginTime" label="本次登入时间" width="300"></el-table-column>
      </el-table>
    </template>
  </div>
</template>

<script>
import * as api from '@/api/stu/index'


export default {
  created(){
    this.hqrizhi()
  },

  data(){
    return{
      // 接收日志
      locaday:[]
    }
  },


  meta:{
    name: '管理首页',
    title:'glsy'
  },

  methods:{
    // 过去登入日志
    hqrizhi(){
      api.getriz()
      .then(res=>{
        this.locaday = res.data.data
        console.log('日志',this.locaday);
      })
    }
  }
}
</script>

<style>

</style>